PATH 
Mac OS 8 and 9 Developer Documentation > Text and Other International Services > Apple Type Services for Unicode Imaging (ATSUI) > Apple Type Services for Unicode Imaging Reference

     

ATSUCountFontFeatureTypes

Counts the number of feature types in a font.

OSStatus ATSUCountFontFeatureTypes (
                     ATSUFontID iFont,
                     ItemCount *oTypeCount);
iFontID
A value of type ATSUFontID. Pass the ID of the font whose feature types you want to count.

oTypeCount
A pointer to a count. On return, the number of feature types in the font. You cannot pass NULL for this parameter.

function result
A result code. The result code kATSUInvalidFontErr indicates that the ID does not correspond to any installed font. For a list of other ATSUI-specific result codes, see Result Codes.
DISCUSSION
The ATSUCountFontFeatureTypes function counts the total number of feature types defined in a font. You can use this count to determine how much memory to allocate for the oTypes array in the function ATSUGetFontFeatureTypes.

VERSION NOTES
Available beginning with ATSUI 1.0.


© 2000 Apple Computer, Inc. – (Last Updated 25 Jan 00)